package com.huabo.audit.oracle.entity;

import java.math.BigDecimal;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import javax.persistence.Transient;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author huabo
 * @since 2022-04-28
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("TBL_AUDIT_OPTION")
@ApiModel(value="TblAuditOption对象", description="")
public class TblAuditOption implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("OPT_ID")
      private BigDecimal optId;

    @TableField("OPT_DESC")
    private String optDesc;

    @TableField("OPT_STAFFID")
    private BigDecimal optStaffid;

    @TableField("RELATION_ID")
    private BigDecimal relationId;

    @TableField("OPT_STATE")
    private String optState;

    @TableField("CREATE_DATE")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createDate;

    @TableField("CYID")
    private BigDecimal cyid;
    
    @TableField("staffidName")
    @Transient
    private String staffidName;

}
